﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ChiakiYu.Core.Dependency;
using ChiakiYu.Model.Permissions;

namespace ChiakiYu.Service.Authorization
{
    public interface IAuthorizationService : IDependency
    {
        IEnumerable<Permission> GetRolePermissions(int roleId);

        IEnumerable<Permission> GetUserPermissions(long userId);


        bool DeleteRolePermissions(int roleId);

        bool DeleteUserPermissions(long userId);
    }
}
